package com.hgw.Demo06_CompositePattern.examples;

/**
 * Data time:2021/12/15 16:13
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public abstract class Component {
    public abstract void add(Component c);              //增加成员
    public abstract void remove(Component c);           //增加成员
    public abstract Component getChild(int i);          //获取方法
    public abstract void operation();         //业务方法
}
